package com.easyweb.session;

import com.easyweb.entity.*;
import java.math.BigDecimal;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("gorevlerHome")
public class GorevlerHome extends EntityHome<Gorevler> {

	public void setGorevlerId(BigDecimal id) {
		setId(id);
	}

	public BigDecimal getGorevlerId() {
		return (BigDecimal) getId();
	}

	@Override
	protected Gorevler createInstance() {
		Gorevler gorevler = new Gorevler();
		return gorevler;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public Gorevler getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
